import request from "@/utils/request.js";

const api_prefix = "/collect/goods";

export function saveCollectGoods(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/save`,
    method: "POST",
    data: data,
  });
}

export function getCollectGoodsList(pageNO,pageSize,userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/list/${pageNO}/${pageSize}/${userId}`,
    method: "GET",
  });
}


export function findPerimeterGoods(pageNO, pageSize) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/perimeter/list/${pageNO}/${pageSize}`,
    method: "GET",
  });
}

export function cancelCollectGoods(id) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/cancel/goods/${id}`,
    method: "DELETE",
  });
}
